<script type="text/javascript">
    $.fn.treeGridOptions.formSubFun("#form",'/modules/column/weChatMenu/doWeChatAdd.html'); //表单提交  参数1：表单id 参数2：表单action地址
</script>
<div class="popForm">
	<form id="form" method="post" enctype="multipart/form-data">
		<div class="formitm">
			<label class="lab">名称：</label>
			<div class="ipt">
				<input type="text" id="name" class="w400 easyui-validatebox" name="name"
					   data-options="required: true,validType:'length[1,8]'">
				<b>*</b>
			</div>
		</div>
		<div class="formitm">
			<label class="lab">内容：</label>
			<div class="ipt">
				<input type="text" name="content"class="w400 easyui-validatebox" data-options="required: true"/>
				<b>*</b>
			</div>
		</div>
		<div class="formitm">
			<label class="lab">等级：</label>
			<div class="ipt">
				<input name="level" value="${weChatMenu.level}" hidden="hidden"/>
				<select name="level" disabled="disabled">
					<option value="1"<#if weChatMenu.level==1>selected="selected"</#if>>一级</option>
					<option value="2"<#if weChatMenu.level==2>selected="selected"</#if>>二级</option>
				</select>
				<span>&nbsp;注：二级菜单需在一级菜单中添加</span>
			</div>
		</div>
		<div class="formitm">
			<label class="lab">父级ID：</label>
			<div class="ipt">
				<input type="text" name="parentId" value="${weChatMenu.parentId}" class="w400 easyui-validatebox" disabled="disabled"/>
			</div>
		</div>
		<div class="formitm">
			<label class="lab">类型：</label>
			<div class="ipt">
				<select name="buttonType">
					<option value="1">跳转URL</option>
					<option value="2">点击事件</option>
				</select>
			</div>
		</div>
		<div class="formitm">
			<label class="lab">排序：</label>
			<div class="ipt">
				<input type="text" name="sort" class="easyui-numberbox" data-options="required:true,validType:'length[1,4]'" maxlength="4"/>
				<b>*</b>
			</div>
		</div>
		<div class="formitm">
			<label class="lab">备注：</label>
			<div class="ipt">
			<textarea class="w400 easyui-validatebox" name="remark" data-options="validType:'maxLength[150]'" maxlength="150"></textarea>
			</div>
		</div>
		<input name="parentId" value="${weChatMenu.parentId}" type="hidden">
	</form>
</div>